export default function (values: any) {
  return [
    {
      title: values['销售管理']['title'],

      children: [
        {
          title: values['销售管理']['销售工作台'],
          link: '/pages/sales-master/sales-workbench',
        },
        {
          title: values['销售管理']['销售基础'],
          children:[
            {
              title:values['销售管理']['客户管理'],
              link:'/pages/basicdata/customer'
            },
            {
              title:values['销售管理']['客户折扣率'],
              link:'/pages/basicdata/customer-discountRate'
            },
          ]
        },
        {
          title: values['销售管理']['销售报价单'],
          link: '/pages/sales-master/sales-quotation-order',
        },
        {
          title: values['销售管理']['销售订单'],
          link: '/pages/sales-master/sales-order',
        },
        {
          title: values['销售管理']['销售发货单'],
          link: '/pages/sales-master/sales-Invoice',
        },
        {
          title: values['销售管理']['销售退货单'],
          link: '/pages/sales-master/sales-return-order',
        },
      ],
      menuIcon: 'icon icon-date',
    },
    {
      title: values['ProcuredManagement']['title'],
      children: [
        {
          title: values['ProcuredManagement']['采购工作台'],
          link: '/pages/purchase/purchase-workbench',
        },
        {
          title: values['ProcuredManagement']['采购基础'],
          children:[
            {
              title:values['ProcuredManagement']['供应商管理'],
              link:'/pages/basicdata/supplier'
            },
            {
              title:values['ProcuredManagement']['供应商价格表'],
              link:'/pages/basicdata/supplier-price'
            },
          ]
        },
        {
          title: values['ProcuredManagement']['采购需求'],
          link: '/pages/purchase/purchase-require',
        },
        {
          title: values['ProcuredManagement']['采购订单'],
          link: '/pages/purchase/purchase-order',
        },
        {
          title: values['ProcuredManagement']['采购到货单'],
          link: '/pages/purchase/purchase-arrival',
        },
        {
          title: values['ProcuredManagement']['采购退货单'],
          link: '/pages/purchase/purchase-return',
        },
        {
          title: values['ProcuredManagement']['采购委外单'],
          link: '/pages/purchase/purchase-outsource',
        },
        {
          title: values['ProcuredManagement']['委外到货单'],
          link: '/pages/purchase/purchase-outsource-arrival',
        },
        {
          title: values['ProcuredManagement']['委外退货单'],
          link: '/pages/purchase/purchase-outsource-return',
        }
      ],
      link: '/pages/form',
      menuIcon: 'icon icon-marketplace',
    },
    {
      title: values['仓库管理']['title'],
      children: [
        { title: values['仓库管理']['仓库工作台'] ,link:'/pages/inventory/inventory-workbench'},
        { title: values['仓库管理']['初期入库'],
          link: '/pages/inventory/initial-inventory'
         },
        { title: values['仓库管理']['生产领料出库'] , link: '/pages/product/product-job-pink'},
        { title: values['仓库管理']['库位库存表'],link:'/pages/inventory/inventory'},
        { title: values['仓库管理']['生产入库单'],link:'/pages/inventory/product-inventory-rk'},
        { title: values['仓库管理']['生产退料单'],link:'/pages/inventory/returning-materials-to-production'},
        { title: values['仓库管理']['销售发货单'],link:'/pages/sales-master/sales-Invoice'},
        { title: values['仓库管理']['销售退货单'],link:'/pages/sales-master/sales-return-order'},
        { title: values['仓库管理']['库存记录表'],link:'/pages/inventory/inventory-jilu'},
      ],
      menuIcon:'icon icon-homepage'
    },
    {
      title: values['生产管理']['title'],
      children: [
        { title: values['生产管理']['生产工作台'], link: '/pages/product/product-workbench' },
        { title: values['生产管理']['生产'],
          open: true,
          children:[
            { title: values['生产管理']['生产工单'], link: '/pages/product/product-job' },
            { title: values['生产管理']['工单派发'], link: '/pages/product/product-dispatch-order' },
            { title: values['生产管理']['工序派发'], link: '/pages/product/process-dispatch' },
            { title: values['生产管理']['工单领料'], link: '/pages/product/product-job-pink' },
            { title: values['生产管理']['工单队列'], link: '/pages/product/product-work-report-order' },
            { title: values['生产管理']['操作工开报工平台(pad)'], link: '/opterator-tasks' },
          ]
        },
      ],
      link: '/pages/list',
      menuIcon: 'icon icon-base-info',
    },
    {
      title: values['工艺管理']['title'],
      children: [
        { title: values['工艺管理']['工序管理'], link: '/pages/process/process-item' },
        { title: values['工艺管理']['工艺路线管理'], link: '/pages/process/technology-route' },
        { title: values['工艺管理']['搭建生产制造方法MOM'], link: '/pages/process/mom' },
      ],
      link: '/pages/abnormal',
      menuIcon: 'icon icon-b-tree',
    },
    {
      title: values['质量管理']['title'],
      children: [
        { title: values['质量管理']['质量工作台'], link: '/pages/user/center' },
        { title: values['质量管理']['检验项目'], link: '/pages/user/settings' },
        { title: values['质量管理']['检验模板'], link: '/pages/user/settings' },
        { title: values['质量管理']['采购入库检验'], link: '/pages/user/settings' },
        { title: values['质量管理']['销售发货检验'], link: '/pages/user/settings' },
        { title: values['质量管理']['成品返修检验'], link: '/pages/user/settings' },
        { title: values['质量管理']['生产过程检验'], link: '/pages/user/settings' },
        { title: values['质量管理']['不良分析报表'], link: '/pages/user/settings' },
      ],
      link: '/pages/user',
      menuIcon: 'icon icon-safe-setting',
    },
    {
      title: values['财务管理']['title'],
      children: [
        { title: values['财务管理']['基础'],
          children:[
            {
              title:values['财务管理']['收付款账期'],
              link:'/pages/finance/settlement-period'
            }
          ]
        },
      ],
      menuIcon:'icon icon-identity-auth'
    },
    {
      title: values['看板管理']['title'],
      children: [
        { title: values['看板管理']['看板列表'] ,
          link:'/pages/kanban/kanban-menu'
        }
      ],
      menuIcon:'icon icon-line-chart'
    },
    {
      title: values['设备管理']['title'],
      children: [
        { title: values['设备管理']['center'],
        children:[
          { title: values['设备管理']['设备台账'] ,
          link:'/pages/device/device'}
        ]
        },
      ],
      menuIcon:'icon icon-console'
    },
    {
      title: values['工装夹具']['title'],
      children: [
        { title: values['工装夹具']['工装夹具管理'] ,

        link:'/pages/device-tools/device-tool'},
      ],
      menuIcon:'icon icon-infrastructure'
    },
    {
      title: values['研发管理']['title'],
      children: [

      ],
      menuIcon:'icon icon-accelerations'
    },
    {
      title: values['模具管理']['title'],
      children: [
        { title: values['模具管理']['center'],
        link:'/pages/mould/moulds',
      },
      ],
      menuIcon:'icon icon-selct-template'
    },
    {
      title: values['基础数据']['title'],
      children: [
        { title: values['基础数据']['角色管理'],
          link:'/pages/basicdata/role'
        },
        {
          title:values['基础数据']['员工管理'],
          link:'/pages/basicdata/employs'
        },
        {
          title:values['基础数据']['仓库'],
          children:[
            {
              title:values['基础数据']['仓库维护'],
              link:'/pages/basicdata/storehouse'
            },{
              title:values['基础数据']['仓位维护'],
              link:'/pages/basicdata/position'
            }
          ]
        },
        {
          title:values['基础数据']['物料管理'],
          link:'/pages/basicdata/material'
        },
        {
          title:values['基础数据']['车间管理'],
          link:'/pages/basicdata/work-shop'
        },
        {
          title:values['基础数据']['财务'],
          children:[
            {
              title:values['基础数据']['结算方式'],
              link:'/pages/basicdata/settlement-method'
            },
            {
              title:values['基础数据']['币种配置'],
              link:'/pages/basicdata/currency'
            },
            {
              title:values['基础数据']['发票类型'],
            },
            {
              title:values['基础数据']['结算账号'],
            },
          ]
        },
      ],
      menuIcon:'icon icon-operation-log'
    },
    {
      title: values['系统设置']['title'],
      children: [
        {
          title: values['系统设置']['编码规则'],
          link:'/pages/systemset/Encoding-Rules'
        },
        {
          title: values['系统设置']['字典管理'],
          link:'/pages/systemset/Dirctory'
        },
        {
          title: values['系统设置']['审核流角色'],
          link:'/pages/systemset/Review-Flow-Roles'
        },
        {
          title: values['系统设置']['审核流配置'],
          link:'/pages/systemset/Review-Flow'
        },
      ],
      link: '/pages/systemset',
      menuIcon:'icon icon-setting'
    },
  ];
}

